<?php
$json_items = array();
foreach ($sf_data->getRaw('items') as $item){
    $json_items[] = array(
            "name" => $item->getNombreRubroResultado(),
    );
}

echo $json = json_encode(
            array(
                "items" => $json_items
            )
        );
?>